<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/invoice/invoiceApply.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/css/H-ui.admin.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/style.css">
    <style>
        .form-group img {
            cursor: pointer
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>开票申请管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>开票申请详情</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">开票申请详情</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frm">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">ID：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" id="invoiceApplyId" name="invoiceApplyId" value="${invoiceApply.invoiceApplyId}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开票类型：</label>
                            <div class="col-sm-4">
                                <select disabled class="form-control" id="invoiceNormalType" name="invoiceNormalType" readonly>
                                    <option value="0" ${invoiceApply.invoiceNormalType=="0"?"selected":""}>个人开票</option>
                                    <option value="1" ${invoiceApply.invoiceNormalType=="1"?"selected":""}>企业开票</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">申请人：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="addressee" id="birthday" value="${invoiceApply.addressee}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">申请时间：</label>
                            <div class="col-sm-4">

                                <input type="text" class="form-control" name="createdTime" id="createdTime" value="<fmt:formatDate value="${invoiceApply.createdTime}" pattern="yyyy-MM-dd hh:mm:ss"></fmt:formatDate>" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开票主体：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="invoiceTitle" id="invoiceTitle" value="${invoiceApply.invoiceTitle}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">税号：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="companyCredit" id="companyCredit"
                                <c:if test="${invoiceApply.invoiceNormalType eq '0'}">value="-"</c:if>
                                <c:if test="${invoiceApply.invoiceNormalType eq '1'}">value="${invoiceApply.companyCredit}"</c:if>
                                       readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开票金额：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="amount" id="amount" value="${invoiceApply.amount}" readonly>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-body">
                    <table id="exampleTable" data-mobile-responsive="true"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    detailInvoiceApply.init();
</script>
</body>
</html>
